package com.gitee.cirnochat.login.model.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
/**
 * 用户登录 DTO (邮箱验证码登录)
 */
@Data
@Schema(name = "用户邮箱验证码登录信息", description = "用户邮箱登录信息")
public class UserEmailCodeLoginRequest {
    @Schema(description = "邮箱", example = "john.doe@example.com")
    @Email(message = "邮箱格式不正确")
    @NotBlank(message = "邮箱不能为空")
    @Size(max = 64, message = "邮箱长度不能超过64个字符")
    private String email;

    @Schema(description = "验证码", example = "614241")
    @NotBlank(message = "验证码不能为空")
    @Size(min = 6, max = 6, message = "验证码长度必须6位")
    private String code;
}
